﻿<%@ page import="java.util.*"%> 
<%@ page isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c"  uri="/c.tld" %>
<%@ taglib prefix="fmt"  uri="/fmt.tld" %>
<%@ taglib prefix="fn" uri="/fn.tld" %> 
<%@ page import="com.stone.para.IConstant"%>
<%@ page language="java" import="java.util.*,com.stone.business.cllyjl.pojo.TClkcmx, com.stone.sys.pojo.*" pageEncoding="UTF-8"%>
<%
	List<TDictionary> cllbList = (List<TDictionary>)request.getAttribute("cllbList");
	List<TDictionary> clmcList = (List<TDictionary>)request.getAttribute("clmcList");
	List<TDictionary> cldwList = (List<TDictionary>)request.getAttribute("cldwList");
	List<TDictionary> clxhList = (List<TDictionary>)request.getAttribute("clxhList");
	List<TDictionary> ckmcList = (List<TDictionary>)request.getAttribute("ckmcList");
	List<TClkcmx> clkcmxList = (List<TClkcmx>)request.getAttribute("clkcmxList");
 %>
<%
	String contextPath = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

	
	<title></title>
	
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="<%=contextPath%>/js/validator.js"></script> 
	<script type="text/javascript" src="<%=contextPath%>/ext3/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="<%=contextPath%>/ext3/ext-all.js"></script>		
	<script type="text/javascript" src="<%=contextPath%>/js/My97DatePicker/WdatePicker.js"></script>
	<link rel="stylesheet" type="text/css"	href="<%=contextPath%>/ext3/resources/css/ext-all.css">
		
	
<style type="text/css">
.table_print{	
	border:1px solid #000000;
	border-collapse:collapse;
}
.table_print td{
	border:1px solid #000000;
	border-collapse:collapse;
	empty-cells:show;
	line-height:24px;	
	padding-left:6px;
} 
.table_transient{
	border:0px solid;
}
.table_transient td{
	border:0px solid;
}
</style>
    <style media="print">.Noprint { DISPLAY: none }</style>
<script type="text/javascript" language="javascript">  
			
			Ext.onReady(function(){
				var tb = new Ext.Toolbar({
			   		renderTo: document.all.tbar,
			    	items: [
				        {
				            text: '打印预览',
				            icon:"/DLPLANMIS/images/PrintPreview.gif",
				            handler:function() {
				            	document.getElementById("tbar").style.display ="none";// = "display:none";
				            	webbrowser.ExecWB(7,1);
				            	document.getElementById("tbar").style.display ="";// = "display:none";
				            }
				        }/*,'-',
				        {
				            text: '关闭',
				            icon:"/DLPLANMIS/images/banjie.png",
				            handler:function(){
				            	window.close();
				            }
				        }*/
			    	]
			    });
			});
 
		 </script>  
</head>
 
<body>
<div id = "tbar" class="Noprint" style="position:absolute;display:block left:0px; top:0px; width:100%; height:25px; z-index:1;"></div>	

<p align="center"><span  style="font: 22pt/22pt 宋体;"><strong>检修试验工区材料领用单</strong></span></p>
<table border="0" width="100%">
<tr>
<td align="right">领料单编号：</td>
<td width="150px"><span style="BORDER-BOTTOM: #000000 1px solid; display: inline-block; width: 100px; text-align: left;font-family: 宋体; font-size: 12pt">&nbsp;${entity.bh}&nbsp;</span></td>
</tr>
</table>
<table  style="border-bottom: medium none; border-left: medium none; margin: auto auto auto 0.15pt; border-collapse: collapse; border-top: medium none; border-right: medium none" border="1" cellspacing="0" cellpadding="0" width="100%" bordercolor="#000000">
<tr>
<td height="35" align="center">
领用人：
</td>
<td height="35" align="center">
&nbsp;${entity.lyrname}&nbsp;
</td>
<td height="35" align="center">
审核人：
</td>
<td height="35" align="center">
&nbsp;${entity.shrname}&nbsp;
</td>
<td height="35" align="center">
领用日期：
</td>
<td height="35" align="center">
&nbsp;<fmt:formatDate value="${entity.lydate}" pattern="yyyy-MM-dd"/>	&nbsp;
</td>
</tr>
<tr>
<td height="35" align="center">
变电站：
</td>
<td height="35" align="center">
&nbsp;${entity.stationname}&nbsp;
</td>
<td height="35" align="center">
工作开始时间：
</td>
<td height="35" align="center">
&nbsp;<fmt:formatDate value="${entity.startdate}" pattern="yyyy-MM-dd HH:mm"/>	&nbsp;
			
</td>
<td height="35" align="center">
工作结束时间：
</td>
<td height="35" align="center">
&nbsp;<fmt:formatDate value="${entity.enddate}" pattern="yyyy-MM-dd HH:mm"/>	&nbsp;	
</td>
</tr>
<tr>
<td nowrap="nowrap" height="35" align="center">
工作负责人：
</td>
<td  height="35" align="center">
&nbsp;${entity.fzrname}&nbsp;		
</td>
<td  height="35" align="center">
工作成员：
</td>
<td  height="35" align="center">
&nbsp;${entity.cyname}&nbsp;
</td>
<td  height="35" align="center">
材料员：
</td>
<td  height="35" align="center">
&nbsp;${entity.clyname}&nbsp;

</td>
</tr>
<tr>
<td align="center" nowrap="nowrap">工作内容：</td>
<td colspan="5">${entity.workcontent}</td>
</td>
</tr>
<tr>
<td colspan="6">
<table width="100%" class="table_print" cellpadding="0" cellspacing="0">
<tr>
<td width="40" nowrap="nowrap" align="center"><span style="font-family: &quot;宋体&quot;; font-size: 12pt">序号</span></td>
<td align="center"><span style="font-family: &quot;宋体&quot;; font-size: 12pt">材料类别</span></td>
<td align="center"><span style="font-family: &quot;宋体&quot;; font-size: 12pt">材料名称</span></td>
<td nowrap="nowrap" align="center"><span style="font-family: &quot;宋体&quot;; font-size: 12pt">领用数量</span></td>
<td align="center"><span style="font-family: &quot;宋体&quot;; font-size: 12pt">材料型号</span></td>
<td align="center"><span style="font-family: &quot;宋体&quot;; font-size: 12pt">仓库名称</span></td>
</tr>

				<%if(clkcmxList!=null && clkcmxList.size() > 0){ %>		
				<%for(int i = 0; i < clkcmxList.size(); i++){ %>
				<%  TClkcmx tmp = clkcmxList.get(i); %>		
				<tr id = "tr<%=i %>" class = "repeat">
				<td width="5"><%=i + 1 %></td>
				<td width="15%">
				<%for(int j = 0; j < cllbList.size(); j++){ 
				if(tmp.getCllb().equals(cllbList.get(j).getItemId())){%>
				<%=cllbList.get(j).getItemName()%>
				<% break;}	} %>
				</td >	
				<td width="15%">
				<%for(int j = 0; j < clmcList.size(); j++){ 
				if(tmp.getClmc().equals(clmcList.get(j).getItemId())){%>
				<%=clmcList.get(j).getItemName()%>
				<% break;}	} %>
				</td>	
				<td  width="10%">	
				<%=tmp.getLysl() %>
				<%for(int j = 0; j < cldwList.size(); j++){ 
				if(tmp.getCldw().equals(cldwList.get(j).getItemId())){%>
				<%=cldwList.get(j).getItemName()%>
				<% break;}	} %>
				</td >	
				<td width="35%">
				<%for(int j = 0; j < clxhList.size(); j++){ 
				if(tmp.getClxh().equals(clxhList.get(j).getItemId())){%>
				<%=clxhList.get(j).getItemName()%>
				<% break;}	} %>
				</td >								
				<td width="20%">
				<%for(int j = 0; j < ckmcList.size(); j++){ 
				if(tmp.getCkmc().equals(ckmcList.get(j).getItemId())){%>
				<%=ckmcList.get(j).getItemName()%>
				<% break;}	} %>
				</td >	
				</tr>
				<%} %>
				<%} %>
</table>
</td>
</tr>
</table>		
</body>
<object id="webbrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0"  width="0"></object>

</html>